﻿<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
		<meta http-equiv="Cache-Control" content="no-store"/>
		<meta http-equiv="Pragma" content="no-cache"/>
		<meta http-equiv="Expires" content="0"/>
		<title>testAmount&Replace</title>
	
		<link rel="stylesheet" type="text/css" href="itreasury/easyui_themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="itreasury/easyui_themes/icon.css">
		<link rel="stylesheet" type="text/css" href="itreasury/css/suggest.css">
		<script type="text/javascript" src="itreasury/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="itreasury/js/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="itreasury/js/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/JavaScript" src="itreasury/js/json.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.bgiframe.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.actual.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.dropshadow.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_text_amount.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_text_rate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/arabia_to_chinese.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_magnifier.js"></script>
		<script type="text/JavaScript" src="itreasury/js/Math.uuid.js"></script>
		<script type="text/JavaScript" src="itreasury/js/datacheck_formvalidate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/datacheck_comparedate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/utils.js"></script>
	</head>

	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<form name="form1" id="form1" action="" method="post">			
			<table width="100%">
				<tbody>
					<tr>
						<td>
							金额：<input type="text" class="amount" id="text1" name="text1"/>
						</td>
					</tr>
					<tr>
						<td>
							<input type="button" id="buttonTest" value="校验测试"/>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<script type="text/javascript">
			$(document).ready(function() {
				$('#buttonTest').bind('click',function(){
					var amount = $('#text1').val();
					alert(amount);
					alert(amount.replace(/,/g,''));
				});
			});
		</script>
	</body>
</html>